package cn.lingyangwl.agile.member.service;

import cn.lingyangwl.agile.member.model.entity.AccountDetail;
import cn.lingyangwl.agile.member.model.rqrs.account_detail.AccountDetailPageReq;
import cn.lingyangwl.agile.member.model.rqrs.account_detail.AccountDetailResp;
import cn.lingyangwl.agile.member.model.rqrs.account_detail.AccountDetailSaveReq;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 账户明细
 *
 * @author shenguangyang
 */
public interface AccountDetailService extends IService<AccountDetail> {
    /**
     * 分页查询 账户明细
     *
     * @return 返回分页数据
     */
    IPage<AccountDetailResp> pageAccountDetail(AccountDetailPageReq req);


    /**
     * 发放用户账户数据
     */
    void saveAccountDetail(AccountDetailSaveReq req);

    /**
     * 通过用户id删除
     * @param userId 用户id
     */
    void deleteByUserId(Long userId);
}
